layout.tsx 334 B

123456789101112131415161718
  1. import Main from './layout-main'
  2. const DatasetDetailLayout = async (
  3. props: {
  4. children: React.ReactNode
  5. params: Promise<{ datasetId: string }>
  6. },
  7. ) => {
  8. const params = await props.params
  9. const {
  10. children,
  11. } = props
  12. return <Main params={(await params)}>{children}</Main>
  13. }
  14. export default DatasetDetailLayout